package com.dstats.fragments;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentTabHost;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.dstats.R;

public class InternationalFragment extends Fragment {

	private FragmentTabHost tabHost;
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
    	super.onCreate(savedInstanceState);
		
    	   View rootView = inflater.inflate(R.layout.tab_host_horizontal, container, false);
    	tabHost = (FragmentTabHost) rootView.findViewById(android.R.id.tabhost);
    	
    	tabHost.setup(getActivity(), getChildFragmentManager(), R.id.tab_container);
    	
    	tabHost.addTab(tabHost.newTabSpec("Tab4").setIndicator(getString(R.string.games)),
    			TIGamesFragment.class, null);

    	tabHost.addTab(tabHost.newTabSpec("Tab1").setIndicator(getString(R.string.results)),
    			TIScoreFragment.class, null);

    	return rootView;
	}
	
}
